package com.heima.api;

import com.heima.api.fallback.ApArticleFeignFallBack;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article",fallback = ApArticleFeignFallBack.class)
public interface ApArticleFeign {
    @PostMapping("/api/v1/article/sync")
    ResponseResult syncFromNews(@RequestBody ArticleDto dto);
}
